<%--
  Created by IntelliJ IDEA.
  User: 17728
  Date: 2020/10/22
  Time: 20:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@ include file="/pages/common/head.jsp" %>
    <style type="text/css">
        .a {
            width: 80vw;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<div class="a">
    <form action="NoticeServlet">
        <input type="hidden" name="action" value="${empty requestScope.notice1.id?"saveNotice":"updateNotice"}">
        <input type="hidden" name="id" value="${requestScope.notice1.id}">
        <div class="b">
            <div class="form-group">
                <label for="id">公告id</label>
                <input type="text" class="form-control" id="id" name="id" value="${requestScope.notice1.id}" disabled>
            </div>
            <div class="form-group">
                <label>标题</label>
                <input type="text" class="form-control" name="title" value="${requestScope.notice1.title}">
            </div>
            <textarea class="form-control" rows="9" name="content"
                      value="${requestScope.notice1.content}">${requestScope.notice1.content}</textarea>
            <input type="submit" value="提交"><br>
            <input class="btn btn-default" type="button" name="submit" onclick="javascript:history.back(-1);"
                   value="返回上一页">
        </div>
    </form>
</div>
</body>
</html>
